Escape closes an open Kanban card the first time it is pressed. It needed two presses when nothing on the card had been clicked yet. While a value on the card is being typed in, Escape still cancels that edit first.
An opened card can also be scrolled with the arrow keys and Page Down straight away.