Modified key-map for document event handling in prototype.