converted prototypes, some clean up
fixes event issues with keyboard