made function to control drone movement on key press