Added pause (x), exit (space), and pop (p) key commands.