Move command to global
Move commands to single file
Add input settings to undo/redo