Commit some Key tests.

Currently failing.
Fix some cross platform key bugs.