Input state widget pressed

This should fix #410. I've played about with this code a bit and I haven't noticed any changes in functionality. I couldn't find a window that had a dropdown with multiple columns so that needs to be tested. This code is not a 1 to 1 conversion I had to tweak it a bit to make it look like C code. This could do with a rework once more is understood about windows.