Fix randomApple bug and add refresh keybinding