Hypothesis: Cortical spreading depolarizations are inhibited by the NMDA receptor antagonist Ketamine Aim 1: To demonstrate, in a group of patients with acute severe brain injury requiring surgery including traumatic brain injury and aneurysmal subarachnoid hemorrhage, whether use of continuous infusion of ketamine decreases frequency of occurrence of cortical spreading depolarizations.