Function getCurrentlyFocused