Swapped keypress callback order.