Use on instead of live, and bind to new #dungeons element instead of document; Use keydown event in .damage to match window keydown event; Prevent hitting space in a field triggering roll