compact way of toggling keypad