Introduce input_filter to TextInput to allow only e.g. int, float inputs

By selecting e.g. 'int' for the new input_filter variable, a user would only be able to type numbers into the TextInput.

This implements part of the request of https://github.com/kivy/kivy/issues/1401.