An easy and lightweight way to restrict characters in a input text field.
BSD-3 license (https://opensource.org/licenses/BSD-3-Clause)