Fixed the if condititions for numpad key