Use event data in control component Twoway

Instead of polling the current keyboard state, use keyboard event data
Merge pull request #598 from mucaho/twoway-patch

Use event data in control component Twoway