Numeric input answer close

I couldn't find a way to update my previous pull request so I just created a new one. I think I addressed all your comments, but I would love more feedback on how to improve!
nit: `onSpace`?