Added input check and enter key event

Moar gooder!