Fixed wrong namespace statements
Fixed Keyboard listener error
Removed error about UIThread safe.

I’m not sure that I correctly fixed the UIThread error, but it appears to work.