bind keyboard before packing