Basic key-input funtionality finally working.