Key commands

Adds a basic set of key commands to provide the same key command functionality in tbpl.