Clean up an input field for commas, dots, etc

I´m responding to myself. But maybe with this?