Detects all the held keys and puts them into a list, also sets the variable "key pressed" to the current key pressed, which can be useful for custom input boxes/etc.
By myself. No credit required, but it would be appreciated.