Fixed a bug with how input determined if a key or mouse button was held down. Also added in a variable for delay between when a key or mouse button is pressed until it is considered held down.