adding legacy versions

For debugging purposes.
delegating keyboard listeners to window
added window flashing