Refactor Linux keyboard adaptors

* update Linux keyboard adaptors to work with refactored keyboard controller