Fixed Forward/Backward issue for keyboard input