using only input event to apply mask chars