Change keys and window position