added keys to mark whole buffer and insert tilde