Improve input

improve debug overlay rendering