@Override
public void actionPerformed(InputEvent event) {
if (event.key.id == input.esc.id
&& event.type == InputEventType.PRESSED) {
game.showGui(new GuiPause(game, Game.WIDTH, Game.HEIGHT));
}
if (event.key.id == input.action.id
&& event.type == InputEventType.PRESSED) {
if (!isActing && performActionOn != null) {
performActionOn.action(this);