Added OnFocus method to States i.e. to unlock the cursor whenever a menu state takes focus.