Keys

Adds a (very) simple key simulator, along with some simple tests.